import React from 'react'
import { Tabs } from 'antd';

const { TabPane } = Tabs;

export default function Tab(props) {
    const callback = (key) => {
        console.log(key);
    }
    const Demo = () => (
        <Tabs defaultActiveKey="1" onChange={callback} className='tabs'>
            <TabPane tab="未受理" key="1">
                {props.children}
            </TabPane>
            <TabPane tab="已通过" key="2">
                {props.children}
            </TabPane>
            <TabPane tab="已终止" key="3">
                {props.children}
            </TabPane>
        </Tabs>
    );
    return (
        <div>
            <Demo />
        </div>
    )
}
